<?php

include("../utility/connection.php");
include("../model/mInformasi.php");
session_start();

if($_SERVER["REQUEST_METHOD"] == "POST") {
    unset($_SESSION['kategori']);
    
    $count = 0;
    $info = trim(mysql_real_escape_string($_POST["hidInfo"]));
    $resInfoById = fnInfoById($info);
    
    $rowMstInformasi = mysql_fetch_row($resInfoById);
    $NamaFile = $rowMstInformasi[2];
    
    $_SESSION['info']=$info;
    $_SESSION['namaFile']=$NamaFile;
    //$location = 'location: ../'.$NamaFile;
    $location = 'location: ../informasi.php';
    header($location);
}
?>
